﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<cludg.Domain.Content.Stories.Story>" %>

<%@ Import Namespace="cludg.Web.RenderHelpers" %>

<div class="sharestory">
	<noindex>
		<span class="sharestoryitem">
			<!-- Put this script tag to the place, where the Share button will be -->
			<script type="text/javascript"><!--
				document.write(VK.Share.button({ url: "<%: Html.StoryUrl(Model) %>" }, 
				{ type: "custom", text: "<img src=\"http://vk.com/images/vk32.png?1\" width=\"24\" height=\"24\" alt=\"ВКонтакте\"/>" }));
			--></script>
			<noscript>
				<a href="http://vkontakte.ru/share.php?url=<%: Html.StoryUrl(Model) %>" target="_blank">Поделиться ВКонтакте</a>
			</noscript>
		</span>
		<span class="sharestoryitem">
			<a title="Запостить в Twitter" 
				href="http://twitter.com/home?status=<%: String.Format("{0} {1}", Model.Title, Html.StoryUrl(Model)) %>" 
				target="blank" 
				rel="nofollow">
				<img src="../../modules/cludg.Web.ShareContentModule/content/images/twitter.png" alt="Twitter" border="0" />
			</a>		
		</span>
		<span class="sharestoryitem">
			<a title="Забобрить на BobrDobr.ru" 
				href="http://bobrdobr.ru/addext.html?url=<%: Html.StoryUrl(Model) %>&title=<%: Model.Title %>" 
				target="blank" 
				rel="nofollow">
				<img src="../../modules/cludg.Web.ShareContentModule/content/images/bobrdobr.png" alt="Bobrdobr" border="0" />
			</a>		
		</span>
		<span class="sharestoryitem">
			<a  title="Buzz this"
				href="http://www.google.com/reader/link?url=<%: Html.StoryUrl(Model) %>&title=<%: Model.Title %>" 
				target="_blank" 
				rel="nofollow external">
				<img src="../../modules/cludg.Web.ShareContentModule/content/images/buzz.png" width="24" height="24" alt="Buzz" />
			</a>	
		</span>
		<span class="sharestoryitem">
			<a title="Digg this post" 
				href="http://digg.com/submit?phase=2&url=<%: Html.StoryUrl(Model) %>&amp;title=<%: Model.Title %>" 
				target="blank" 
				rel="nofollow">
				<img src="../../modules/cludg.Web.ShareContentModule/content/images/digg.png" alt="Digg" border="0" />
			</a>
		</span>
	</noindex>
</div>